package org.cvcsc.weproject.controller.dto;

public class LoginResponse {
    private Long id;
    private String name;
    private boolean isAdmin;
    private Long clazzId;
    private String token; // 新增Token字段

    public void setToken(String token) {
        this.token = token;
    }

    public LoginResponse(Long id, String name, boolean isAdmin, Long clazzId, String token) {
        this.id = id;
        this.name = name;
        this.isAdmin = isAdmin;
        this.clazzId = clazzId;
        this.token = token;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }

    public Long getClazzId() {
        return clazzId;
    }

    public void setClazzId(Long clazzId) {
        this.clazzId = clazzId;
    }

    public String getToken() {
        return token;
    }
}